package com.csylh.service.impl;

import com.csylh.dao.CategoryMapper;
import com.csylh.entity.WasteCategory;
import com.csylh.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 留歌
 * Date: 2018/3/12 22:49
 * Description:
 */
@Service("categoryService")
public class CategoryServiceImpl  implements CategoryService{

    @Autowired
    private CategoryMapper categoryMapper;

    /**
     * 返回所有的废品类目
     * @return List<WasteCategory>
     */
    @Override
    public List<WasteCategory> getAllCategory() {
        return categoryMapper.selectAllCategory();
    }

//    @Override
//    public List<WasteCategory> findByCategoryTypeIn(List<Integer> categoryTypeList) {
//        return categoryMapper.findByCategoryTypeIn(categoryTypeList);
//    }

}
